﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ClassLibraryLab3
{
     public class Cargos : Cargo
        {
            private string _name;
            private string _maneuverability;
            private string _power;
            private string _protection;
            private decimal _structure;
            private decimal _size;

            public Cargos() : this(null) { }
            public Cargos(string _name) : this(_name, 0) { }
            public Cargos(string _name, decimal _structure) : this(_name, _structure, 0) { }
            public Cargos(string _name, decimal _structure, decimal _size) : this(_name, _structure, _size, null) { }
            public Cargos(string _name, decimal _structure, decimal _size, string _maneuverability) : this(_name, _structure, _size, _maneuverability, null) { } 
            public Cargos(string _name, decimal _structure, decimal _size, string _maneuverability, string _power) : this(_name, _structure, _size, _maneuverability, _power, null) { }
            public Cargos(string _name, decimal _structure, decimal _size, string _maneuverability, string _power, string _protection)       
            {
                
                this._name = _name;
                this._structure = _structure;
                this._size = _size;
                this._maneuverability = _maneuverability;
                this._power = _power;
                this._protection = _protection;
	        }

            public override string Name  
	        {
                get { return _name; }
                set { _name = value; }  
	        }  
	  
	        public override decimal Structure  
	        {
                get { return _structure; }
                set { _structure = value; }  
            }  
	  
	        public override decimal Size  
	        {
                get { return _size; }
                set { _size = value; }  
	        }
            public override string Maneuverability
            {
                get { return _maneuverability; }
                set { _maneuverability = value; }
            }
            public override string Power
            {
                get { return _power; }
                set { _power = value; }
            }
            public override string Protection
            {
                get { return _protection; }
                set { _protection = value; }
            }  

        }
}
